/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.biz.sys;

import com.cgmnx.admin.dao.entity.sys.UpdFileEntity;
import com.google.common.base.Optional;

import java.io.InputStream;

/**
 * @author: created  Date: 16/12/20 Time: 下午3:29
 * @version: 1.0
 */
public interface FileUploadBiz {

    Optional<UpdFileEntity> upload(String originalFilename, InputStream inputStream,
                                   long size, String userId, String md5DigestAsHex);

    Optional<InputStream> download(UpdFileEntity entity);

}